import Taro from "@tarojs/taro";
// @ts-ignore
import { getToken } from "@/service/";

const navWithAuth = (url: string) => {
  Taro.navigateTo({
    url: getToken().access_token ? url : "/pages/loginGuide/index",
  });
};

export default navWithAuth;
